package com.alangyun.remind.controller;

import java.io.Serializable;

public class ErrorMessage implements Serializable {

	private Integer step;
	private String message;
	
	public static ErrorMessage create(String error) {
		return create(1, error);
	}
	
	public static ErrorMessage create(int step, String error) {
		ErrorMessage ret = new ErrorMessage();
		ret.step=step;
		ret.message = error;
		return ret;
	}

	public Integer getStep() {
		return step == null ? 1 : step;
	}

	public void setStep(Integer step) {
		this.step = step;
	}

	public String getMessage() {
		return message == null ? "" : message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
